<?php

class Promotion extends EMongoDocument {

    public $amount_OR_percentage;
    public $benefits;
    public $bookFromDate;
    public $bookToDate;
    public $bookedRooms;
    public $cancelRules;
    public $cancel_policy;
    public $channel;
    public $checkInToDate;
    public $checkInFromDate;
    public $earlyDays;
    public $hotel;
    public $lastDays;
    public $nightFrom;
    public $nightTo;
    public $no1;
    public $no2;
    public $off_peak;
    public $promotion_name;
    public $promotion_type;
    public $todayName;
    public $roomtype;
    public $created_by;
    public $updated_by;
    public $created_date;
    public $updated_date;
    public $sun;
    public $mon;
    public $tue;
    public $wed;
    public $thu;
    public $fri;
    public $sat;
    public function attributeLabels() {
        return array(
            'amount_OR_percentage' => 'amount OR percentage',
            'benefits' => 'benefits',
            'bookFromDate' => 'bookFromDate',
            'cancelRules' => 'cancelRules',
            'bookedRooms' => 'bookedRooms',
            'bookToDate' => 'bookToDate',
            'cancel_policy' => 'cancel_policy',
            'hotel' => 'Hotel',
            'checkInFromDate' => 'checkInFromDate',
            'channel' => 'channel',
            'checkInToDate' => 'checkInToDate',
            'earlyDays' => 'earlyDays',
            'lastDays' => 'lastDays',
            'nightFrom' => 'nightFrom',
            'nightTo' => 'nightTo',
            'no1' => 'no1',
            'no2' => 'no2',
            'off_peak' => 'off_peak',
            'promotion_name' => 'promotion_name',
            'promotion_type' => 'promotion_type',
            'todayName' => 'todayName',
            'roomtype' => 'roomtype'
        );
    }
    public function rules() {
        return array(
            array('promotion_name','required'),
            array('roomtype,todayName,promotion_type,promotion_name,earlyDays,lastDays,nightFrom,nightTo,no1,no2,off_peak,checkInFromDate,checkInToDate,channel,hotel,amount_OR_percentage,benefits,bookFromDate,bookToDate,cancelRules,bookedRooms,cancel_policy,sun,mon,tue,wed,thu,fri,sat', 'safe')
        );
    }
    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function getCollectionName() {
        return 'promotions';
    }

}

?>
